package com.sky.service;

import com.sky.dto.ShoppingCartDTO;
import com.sky.entity.ShoppingCart;

import java.util.List;

/**
 * PROJECT_NAME: sky-take-out
 * NAME: ShoppingCartService
 * USER: zhang
 * DATE: 2023/5/22
 * DESCRIPTION :
 */
public interface ShoppingCartService {

    /**
     * 添加数据购物车
     * @param shoppingCartDTO 要添加到购物车的数据 菜品Id/菜品Id+菜品口味/套餐Id
     */
    void insertShoppingCart(ShoppingCartDTO shoppingCartDTO);

    /**
     * 查看购物车
     */
    List<ShoppingCart> selectShoppingCart();

    /**
     * 清空购物车功能
     */
    void clearShoppingCart();

    /**
     * 删除购物车中的一个商品
     * @param shoppingCartDTO 要删除购物车的数据 菜品Id/菜品Id+菜品口味/套餐Id
     */
    void deleteShoppingCart(ShoppingCartDTO shoppingCartDTO);
}
